package kr.ac.jejunu.service;

import java.util.List;

import kr.ac.jejunu.model.Comment;
import kr.ac.jejunu.repository.CommentDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl implements CommentService {
	
	@Autowired CommentDao commentDao;

	@Override
	public List<Comment> getList() {
		return commentDao.getList();
	}

	public void saveComment(Comment comment) {
		commentDao.saveComment(comment);
	}

}
